Component({
  data: {},
  properties: {
    title: {
      type: String,
      value: ''
    }
  },
  observers: {
    "title": function (title) {
      console.log("title =" + title);
    }
  },
  lifetimes: {
    // 生命周期函数，可以为函数，或一个在methods段中定义的方法名
    attached: function () {},
    moved: function () {},
    detached: function () {},
  },
  methods: {
    clickBtn: function () {
      console.log("clickBtn");

    }
  }
})